From: Jonas Dreßler Date: Thu, 13 Feb 2020 21:50:40 +0000 (+0100) Subject: blur-effect: Handle failure of background blitting gracefully X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~751^2^2~32 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=91748aedb75d2f9f5f8259ce96ababa089c229d3;p=gnome-shell.git blur-effect: Handle failure of background blitting gracefully `paint_background` already provides a return value in case the blitting of the framebuffer fails, handle that and fall back to only drawing the actor in case something goes wrong. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/1000 --- diff --git a/src/shell-blur-effect.c b/src/shell-blur-effect.c index c3fb3bc60..5e50ab886 100644 --- a/src/shell-blur-effect.c +++ b/src/shell-blur-effect.c @@ -807,7 +807,9 @@ shell_blur_effect_paint (ClutterEffect *effect, break; case SHELL_BLUR_MODE_BACKGROUND: - paint_background (self, paint_context, &source_actor_box); + if (!paint_background (self, paint_context, &source_actor_box)) + goto fail; + apply_blur (self, paint_context, &self->background_fb, 255); break; }